#include <ws2tcpip.h>
#include <winsock.h>
#include <stdio.h>
#pragma comment(lib,"ws2_32.lib")
int main()
{//my addr 192.168.2.199
	WSADATA wsaData;
	WSAStartup(MAKEWORD(2, 2), &wsaData);
	SOCKET clientSock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
	sockaddr_in clientInfo;
	memset(&clientInfo, 0, sizeof(sockaddr));
	clientInfo.sin_family = AF_INET;
	clientInfo.sin_port = htons(12450);
	inet_pton(AF_INET, "192.168.2.199", &clientInfo.sin_addr.s_addr);

	connect(clientSock, (sockaddr*)&clientInfo, sizeof(sockaddr));
	char buffer[128];
	recv(clientSock, buffer, 128, 0);
	printf(buffer);
	getchar();
	WSACleanup();
	getchar();
	return 0;
}